package com.speily.lock.controller;

import com.speily.lock.service.TestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *     测试
 * </p>
 *
 * @author SPL
 * @since 2020/01/02 15:11
 */
@RestController
@Slf4j
public class TestController {

    @Autowired
    private TestService testService;

    /**
     * 使用ApacheJMeter测试
     */
    @RequestMapping("/test")
    public Object test2() {
        testService.test();
        return "OK";
    }
}
